package com.ynhenc.pta.routeRank.impl;

import com.ynhenc.pta.routeRank.*;

public class ScenarioRandom extends ComLib_PTA implements Scenario {
	
	public StartEndNodeList getStartEndNodeList_01_Shortest( RouteRequest routeRequest ) {
		StartEndNodeList seNodeList = new StartEndNodeList();

		seNodeList.add(new StartEndNode(TransitType.AUTOMOBILE, routeRequest.getNodeStart(), routeRequest.getNodeEnd())); 
		
		return seNodeList;
	}
	
	public StartEndNodeList getStartEndNodeList_02_Green_01( RouteRequest routeRequest ) {
		StartEndNodeList seNodeList = new StartEndNodeList();
		
		seNodeList.add(new StartEndNode(TransitType.SUBWAY, routeRequest.getNodeStart(), routeRequest.getNodeEnd()));  
		
		return seNodeList;
	}
	
	public StartEndNodeList getStartEndNodeList_03_Green_02( RouteRequest routeRequest ) {
		StartEndNodeList seNodeList = new StartEndNodeList();
		
		seNodeList.add(new StartEndNode(TransitType.BUS, routeRequest.getNodeStart(), routeRequest.getNodeEnd()));
		
		return seNodeList;
	}
	
	private ScenarioRandom( ) { 
	}
	
	public String getName() {
		return "SCENARIO_02_RANDOM";
	}
	
	public String toString() {
		return this.getName();
	}  
	
	public static Scenario getScenario() {
		if( SCENARIO_SINGLE == null ) {
			SCENARIO_SINGLE = new ScenarioRandom();
		}
		return SCENARIO_SINGLE ;
	}
	
	private static Scenario SCENARIO_SINGLE ;

}
